﻿/// <reference path="jquery-1.5.1-vsdoc.js" />
$(document).ready(function () {
    var LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
    var printsCount = LODOP.GET_PRINTER_COUNT();
    for (var i = 0; i < printsCount; i++) {
        $('#Print1Name, #Print2Name, #Print3Name, #Print4Name').append("<option value='" + i + "'>" + LODOP.GET_PRINTER_NAME(i) + "</option>");
    }

    $('#Print1Name').val(printIds[0]);
    $('#Print2Name').val(printIds[1]);
    $('#Print3Name').val(printIds[2]);
    $('#Print4Name').val(printIds[3]);

});